function processTemplate(template, params) {
  const fn = new Function(...Object.keys(params), `return \`${template}\``)
  return fn(...Object.values(params))
}

module.exports = { processTemplate }